/**
 * 驱动实体
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.operInfo',['water.common.AJAXService']);
	
	module.service('$operInfoService',function($AJAXService){
		
		/**
		 * 获取运行信息
		 */
		this.getOperInfo = function(server){
			var promise = $AJAXService.post("/OperInfo/getOperInfo",{server:server});
			return promise;
		}

        /**
         * 获取运行错误信息
         */
        this.getOperErrorInfo = function(){
            var promise = $AJAXService.post("/OperInfo/getOperErrorInfo");
            return promise;
        }

        /**
         * 清空运行信息
         */
        this.clearOperInfo = function(){
            var promise = $AJAXService.post("/OperInfo/clearOperInfo");
            return promise;
        }

        /**
         * 获取数据存储信息
         */
        this.getDataStoragerInfo = function(platformId){
            var promise = $AJAXService.post("/OperInfo/getDataStoragerInfo",{platformId:platformId});
            return promise;
        }

		
	})
}(window, angular));